# -*- coding: utf-8 -*-
import socket
import sys


def main():
    if len(sys.argv) < 2:
        return
    path = sys.argv[1]
    sc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sc.connect(("127.0.0.1", 7777))
    sc.send(path.encode('utf-8'))
    while True:
        data = sc.recv(2048)
        if not data:
            continue
